import 'package:flutter/material.dart';
import 'shared/app_theme.dart';

main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: HYAppTheme.normalTheme,
      darkTheme: HYAppTheme.darkTheme,
      debugShowCheckedModeBanner: false,
      home: HYHomePage(),
    );
  }
}

class HYHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Flutter Demo'),
        ),
        body: Center(child: Text('Hello Flutter')),
        backgroundColor: Colors.white,
        floatingActionButton: FloatingActionButton(
            child: Icon(Icons.add),
            onPressed: () => print('FloatingActionButton click')),
        floatingActionButtonLocation: FloatingActionButtonLocation.endFloat);
  }
}
